<?php
$companyid = PFactory::getMasterUser()->id;
$url = PResumesHelper::getSearchItemHref(PReportsHelper::getUrl(), 'fid', 'all')[0];
$hasJobGroup = !in_array($_['item'], array('positiondetail', 'subaccount', 'subaccountdetail'));
$fid = JRequest::getInt('fid', 0);
?>
<div class="hr_inner_navigate clearfix" style="box-shadow:none;">
   <?=PReportsHelper::showNavMenu($_['item']);?>
</div>

<?php if($hasJobGroup): ?>
<div class="highsearch_wrap" id="jobGroupNav" data-type="reports" data-fid="<?=$fid?>" data-url="<?=$url?>">
   <?
   $jobgroupDropdown = new OCP\Template('reports', 'part.jobgroup.dropdown', '');
   $jobgroupDropdown->assign('fid', $fid);
   $jobgroupDropdown->assign('url', $url);
   $jobgroupDropdown->assign('type', 'reports');
   $jobgroupDropdown->printpage();
   ?>
</div>
<?php 
$iknow_rep_postips = JRequest::getString('iknow_rep_postips', null, 'cookie');
if(!$iknow_rep_postips){
   echo '<div class="rep_postips iknowtext">您可以按以下职位组合查看统计哦~ <span class="iknow" data-cookie="365" data-cookiename="iknow_rep_postips"><a href="javascript:;">我知道了</a></span></div>';
}
?>
<?php endif; ?>

<div style="position:absolute;" class="modal hide fade report_manegepos_dialog" id="manageJobGroupModal">
   <div class="modal-header">
      <button aria-hidden="true" data-dismiss="modal" class="close" type="button">×</button>
      <h3>管理职位组</h3>
   </div>

   <div class="modal-body">
      <div id="jobGroupList" class="report_manegepos_content"></div>
   </div>
</div>

